<script>
export default {
  onLaunch: function() {
    console.log('App Launch');
  },
  onShow: function() {
    console.log('App Show');
  },
  onHide: function() {
    console.log('App Hide');
  },
  globalData: {
    // 全局数据
  }
};
</script>

<template>
<view class="content">
  <slot></slot>
</view>
</template>

<style>
/*每个页面公共css */
page {
  background-color: #f8f8f8;
}

/* 为所有页面添加顶部安全距离 */
.page-container {
  padding-top: 88rpx; /* 状态栏高度 + 额外间距 */
  min-height: 100vh;
  box-sizing: border-box;
}
</style>
